package com.zlt.entity;

import com.zlt.annotation.Column;
import com.zlt.annotation.Id;
import com.zlt.annotation.ManyToOne;
import com.zlt.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;




@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@Table("question")
public class Question {

    @Id
    private Integer id;

    @ManyToOne("uid")
    private  User user;

    @Column
    private Integer state;

    @Column
    private String content;

    @Column("create_time")
    private String createTime;

}
